package com.mycinema.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mycinema.entity.Movie;


public interface MovieDao {
	Movie fetchById(int id);
	List<Movie> getMovies(@Param("id") int id, @Param("cid")int cid, @Param("title")String title, 
							@Param("start")int start, @Param("pageSize")int pageSize);
	int fetchMovieRows(@Param("id") int id, @Param("cid")int cid, @Param("title")String title);
	void add(Movie movie);
	void update(Movie movie);
	void delete(int id);
	List<Movie> getAll();
}
